import React, {lazy} from 'react'
import {Navigate} from 'react-router-dom'
// import ArticleList from '../pages/ArticleList';
// import ArticleTable from '../pages/ArticleTable';
const ArticleList = lazy( () => import('../pages/ArticleList'))
const ArticleTable = lazy( () => import('../pages/ArticleTable'))
const ArticleEditor = lazy( () => import('../pages/ArticleEditor'))
const ModifyData = lazy( () => import('../pages/ModifyData'))
export default [
    {
        path: '/articleList',
        element: <ArticleList />
    },

    {
        path: '/articleTable',
        element: <ArticleTable />
    },
    {
        path: '/articleEditor',
        element: <ArticleEditor />
    },
    {
        path: '/modifyData',
        element: <ModifyData />
    },
    {
        path:'/',
        element: <Navigate to='articleList'/>
    }
  
]